package org.czh.rmi;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class HelloServiceImpl extends UnicastRemoteObject implements IHelloService {
    public HelloServiceImpl() throws RemoteException {
        super();
    }

    @Override
    public String saYHello(String name)  throws RemoteException {
        System.out.println("name = " + name);
        return "你好啊" + name;
    }
}
